package com.navinfo.opentsp.platform.computing.analysis.util;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

public class JacksonUtils {
    private JacksonUtils() {
    }

    public static ObjectMapper objectMapperBuilder() {
        ObjectMapper objectMapper = (new ObjectMapper()).configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false).configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false).registerModules(new Module[]{null,null});
        return objectMapper;
    }
}